<template>
    <mt-swipe :auto="4000">
      <mt-swipe-item v-for="item in slides" :key="item.id">
        <img :src="item.img" alt="">
      </mt-swipe-item>
    </mt-swipe>
</template>
<script>
export default{
    data(){
        return {
            
        }
    },
    props:['slides']
}
</script>
<style scoped lang="scss">
.mint-swipe {
    height: 200px;
    .mint-swipe-item {
      /*设置轮播图100%显示*/
      >img{
         width: 100%;
        height: 100%;
      }
      &:nth-child(1) {
        background: pink;
      }
      &:nth-of-type(2) {
        background: red;
      }
      &:nth-of-type(3) {
        background: green;
      }
    }
  }
</style>